
package 牛逼的四则运算;

import 牛逼的四则运算.LT;

import java.util.*;

public class LTtest {

    public static void main(String[] args) {
        LT lt = new LT();
        String str = "9+(3-1)*3+10/2";
        List<String> list = lt.work(str);
        List<String> list2 = lt.InfixToPostfix(list);
        System.out.println("原式为："+str);
        System.out.print("后缀表达式为：");
        lt.printList(list2);
        System.out.println(" ");
        System.out.println("计算结果为："+lt.doCal(list2));



    }

}
port java.sql.*;
